# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models


class Testcases(models.Model):

    id = models.IntegerField(primary_key=True, db_index=True)
    pId = models.IntegerField()
    name = models.CharField(max_length=50)
    isParent = models.IntegerField()
    fileUrl = models.CharField(max_length=250, null=True)

    class Meta:
        ordering = ('id', 'name')


    def __unicode__(self):
        return self.name


class Jenkins(models.Model):
    
    hostname = models.CharField(max_length=50, db_index=True)
    username = models.CharField(max_length=50, null=True)
    password = models.CharField(max_length=50, null=True)

    def __unicode__(self):
        return self.hostname
